home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
oper_sys
/
prospero
/
propsero.lha
/
prospero-beta.4.2e
/
server
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-02-10
|
1KB
|
65 lines
# Where to find things
P_INC = ../include
PFS_LIB = ../lib/pfs/libpfs.a
SRV_LIB = ../lib/psrv/libpsrv.a
INSTDIR = UNDEFINED
INSTALL = install
OWNER = pfs
GROUP = pfs
# Args to cc
CC = cc
F_CC = -c -g
F_CCL = -g
F_CPP = -I${P_INC} ${MACHDEF} -DDEBUG
CFILES = \
dirsrv.c \
pstart.c
OBJECTS = \
dirsrv.o \
pstart.o
PROGS = dirsrv pstart
CODE = ${CFILES} Makefile
all: ${PROGS}
install:
-for i in ${PROGS}; do \
(${INSTALL} -c -s -o ${OWNER} -g ${GROUP} $$i ${INSTDIR}/$$i); \
done
-chmod 6755 ${INSTDIR}/pstart
clean:
rm -f a.out core *~ *.o ${OBJECTS} ${PROGS}
src: ${CODE}
${CODE}:
co -q $@
${OBJECTS}:
${CC} ${F_CC} ${F_CPP} $*.c
${PROGS}: ${SRV_LIB} ${PFS_LIB}
${CC} ${F_CCL} -o $@ $@.o ${SRV_LIB} ${PFS_LIB} ${LIBS}
# Dependencies
dirsrv.o: dirsrv.h
dirsrv.o: ../include/pauthent.h
dirsrv.o: ../include/perrno.h
dirsrv.o: ../include/pfs.h
dirsrv.o: ../include/plog.h
dirsrv.o: ../include/pmachine.h
dirsrv.o: ../include/pprot.h
dirsrv.o: ../include/psite.h
dirsrv: dirsrv.o
pstart.o: ../include/pmachine.h
pstart.o: ../include/psite.h
pstart: pstart.o